
package com.yimixian.app.model;

import java.io.Serializable;
import java.util.List;

public class Store implements Serializable {

    public int id;
    public String name;
    public double freeDeliveryPrice;
    public double deliveryFee;
    public String deliveryZoneUrl;
    public String cannotDeliverText;
    public String deliveryType;
    public String city;
    public String address;
    public String area;
    public String regionId;
    public String distance;
    public String detailUrl;
    public String notification;
    public String businessHours;
    public String tel;
    public Coordinate coordinate;
    public List<Section> sections;

    public boolean isActive;
    public Store(){}
//    public Store(
//            int id,
//            String name,
//            double freeDeliveryPrice,
//            double deliveryFee,
//            String deliveryZoneUrl,
//            String cannotDeliverText,
//            String deliveryType,
//            String city,
//            String address,
//            String area,
//            String regionId,
//            String distance,
//            String detailUrl,
//            String notification,
//            String businessHours,
//            String tel,
//            Coordinate coordinate,
//            List<Section> sections) {
//        this.id = id;
//        this.name = name;
//        this.freeDeliveryPrice = freeDeliveryPrice;
//        this.deliveryFee = deliveryFee;
//        this.deliveryZoneUrl = deliveryZoneUrl;
//        this.cannotDeliverText = cannotDeliverText;
//        this.deliveryType = deliveryType;
//        this.city = city;
//        this.address = address;
//        this.area = area;
//        this.regionId = regionId;
//        this.distance = distance;
//        this.detailUrl = detailUrl;
//        this.notification = notification;
//        this.businessHours = businessHours;
//        this.tel = tel;
//        this.coordinate = coordinate;
//        this.sections = sections;
//    }

    public Store(int id, String name) {
        this.id = id;
        this.name = name;
        this.freeDeliveryPrice = 0;
        this.deliveryFee = 0;
        this.deliveryZoneUrl = "";
        this.cannotDeliverText = "";
        this.deliveryType = "";
        this.city = "";
        this.address = "";
        this.area = "";
        this.regionId = "";
        this.distance = "";
        this.detailUrl = "";
        this.notification = "";
        this.businessHours = "";
        this.tel = "";
        this.coordinate = null;
        this.sections = null;
    }
//
//    @Override
//    public int describeContents() {
//        return 0;
//    }
//
//    @Override
//    public void writeToParcel(Parcel dest, int flags) {
//        dest.writeInt(this.id);
//        dest.writeString(this.name);
//        dest.writeDouble(this.freeDeliveryPrice);
//        dest.writeDouble(this.deliveryFee);
//        dest.writeString(this.deliveryZoneUrl);
//        dest.writeString(this.cannotDeliverText);
//        dest.writeString(this.deliveryType);
//        dest.writeString(this.city);
//        dest.writeString(this.address);
//        dest.writeString(this.area);
//        dest.writeString(this.regionId);
//        dest.writeString(this.distance);
//        dest.writeString(this.detailUrl);
//        dest.writeString(this.notification);
//        dest.writeString(this.businessHours);
//        dest.writeString(this.tel);
//        dest.writeParcelable(this.coordinate, flags);
//        dest.writeList(this.sections);
//    }
//
//    protected Store(Parcel in) {
//        this.id = in.readInt();
//        this.name = in.readString();
//        this.freeDeliveryPrice = in.readDouble();
//        this.deliveryFee = in.readDouble();
//        this.deliveryZoneUrl = in.readString();
//        this.cannotDeliverText = in.readString();
//        this.deliveryType = in.readString();
//        this.city = in.readString();
//        this.address = in.readString();
//        this.area = in.readString();
//        this.regionId = in.readString();
//        this.distance = in.readString();
//        this.detailUrl = in.readString();
//        this.notification = in.readString();
//        this.businessHours = in.readString();
//        this.tel = in.readString();
//        this.coordinate = in.readParcelable(Coordinate.class.getClassLoader());
//        this.sections = new ArrayList<Section>();
//        in.readList(this.sections, List.class.getClassLoader());
//    }
//
//    public static final Parcelable.Creator<Store> CREATOR = new Parcelable.Creator<Store>() {
//        public Store createFromParcel(Parcel source) {
//            return new Store(source);
//        }
//
//        public Store[] newArray(int size) {
//            return new Store[size];
//        }
//    };
}
